<!DOCTYPE html>
<html>

<head>
	<#include "/backend/layouts/head.html" />
	<#include "/backend/layouts/easyui_head.html" />
	<#include "/backend/layouts/iframe_head.html" />
</head>

<body style="margin: 0; padding: 0;">

	<div class="table-title">所有模块列表</div>
	<div class="table-normal table-line">
		<table id="model-infos" class="easyui-datagrid" style="width: 100%;" border="0"></table>
	</div>

	<div class="clear"></div>

	<div class="table-title">所有请求动作列表</div>
	<div class="table-normal table-line">
		<table id="model-action-infos" class="easyui-datagrid" style="width: 100%;" border="0"></table>
	</div>

	<div id="model-action-toolbar" style="padding: 5px; height: auto;">
		<div style="margin-bottom: 5px">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
				onclick="append()">新增</a>
			&nbsp;&nbsp;模块: <select class="easyui-combobox" id="search-model" panelHeight="auto" style="width: 120px">
				<option value="0">全部</option>
				<#list modelDatas as item>
					<option value="${item.id}">${item.name}</option>
				</#list>
			</select>
			<a href="javascript:void(0);" class="easyui-linkbutton g-search" iconCls="icon-search">查询</a>
		</div>
	</div>
	<div style="margin-bottom: 80px;"></div>
	<div id="append-form" style="display: none;">
		<div class="append-loading">
			<div class="form-horizontal" style="padding-top: 24px;">
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">动作名称</label>
					<div class="fg-input">
						<input type="text" class="form-control" name="modelName" placeholder="请填写动作名称">
					</div>
				</div>
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">动作关键字</label>
					<div class="fg-input">
						<input type="text" class="form-control" name="modelKeyword" placeholder="请填写动作关键字">
					</div>
				</div>
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">动作类型</label>
					<div class="fg-input">
						<select class="form-control" name="actionType">
							<option value="1">模块列表</option>
							<option value="2">Ajax请求</option>
						</select>
					</div>
				</div>
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">${modelDatas[0].name}</label>
					<div class="fg-input">
						<select class="form-control" name="modelId">
							<#list modelDatas as item>
								<option value="${item.id}">${item.name}</option>
							</#list>
						</select>
					</div>
				</div>
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">排序号</label>
					<div class="fg-input">
						<input type="number" class="form-control" name="modelOrder" style="width: 50%;" placeholder="请填写排序号">
					</div>
				</div>
				<div class="form-group col-sm-12">
					<label class="fg-text control-label">备注</label>
					<div class="fg-input">
						<textarea name="remark" rows="" cols="" class="form-control"></textarea>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		var modelData = ${ modelInfos!"[]"};
	</script>
	<script type="text/javascript" src="/static/js/backend/authorize/list.js"></script>
</body>
</body>

</html>